home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 007a / cug315.zip / MOUS_SYS.C < prev    next >
Text File  |  1990-05-16  |  937b  |  30 lines

  1.  
  2. /* mous_sys.c is a function to support the Microsoft mouse for people */
  3. /* who have mouse.sys but not mouse.lib.  Its use assumes that mouse.sys */
  4. /* has been installed at boot-up.  Written 8/89 by T Clune.  Written for */
  5. /* and Copyright (c) 1989 by Eye Research Institute, Boston MA.  All rights */
  6. /* reserved. NOTE WELL: Does not support mouse calls that return values */
  7. /* in registers SI and DI, but mouselib.c makes no such call. */
  8.  
  9. #include <dos.h>
  10.  
  11. /* cmousel() is the mouse software interrupt call.  It's name and type */
  12. /* are used to make them identical to the mouse.lib call. */
  13.  
  14. int cmousel(a, b, c, d)
  15. int *a, *b, *c, *d;
  16. {
  17.     union REGS regs;
  18.     regs.x.ax= *a;
  19.     regs.x.bx= *b;
  20.     regs.x.cx= *c;
  21.     regs.x.dx= *d;
  22.     int86(0x33, ®s, ®s);
  23.     *a= regs.x.ax;
  24.     *b= regs.x.bx;
  25.     *c= regs.x.cx;
  26.     *d= regs.x.dx;
  27.         
  28.     return 0;  /* well, it IS int, after all. */
  29. }
  30.